package reflection.p1;

public class Person implements China{
    private String name;
    public Integer age;


    public void sayHello(){
        System.out.println("Hello");
    }

    public void say(String str){
        System.out.println("你好"+str);
    }

    private void sayPrivate(){
        System.out.println("我是私有方法");
    }

    public static void sayStatic(){
        System.out.println("我是静态方法");
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Person(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
